/**
 * 二级页
 */
// ***************	二级页面之 机关党建 页面 begin	***************	//
if(_EsdDynamicTransformationScript.currentUrl == 'http://zsj.jl.gov.cn/jgdj1/'){
	
	// 0. 幻灯片 ------- begin
	/*	轮播,右下角原点--鼠标点击触发情况
		轮播：只获取轮播中一个a标签。
		以文字a标签为主，图片a标签尽量不要，title不稳定
	*/
	//轮播前的标签
	_EsdDynamicTransformationScript.esdRotationPreATag = $(".w1262 .ofh .w600 .bt_ty:eq(0) a:eq(1)");

	//文字A标签
	_EsdDynamicTransformationScript.esdRotationATag1 = $(".w600 .tempWrap ul li:eq(1) p b a:first");
	_EsdDynamicTransformationScript.esdRotationATag2 = $(".w600 .tempWrap ul li:eq(2) p b a:first");
	_EsdDynamicTransformationScript.esdRotationATag3 = $(".w600 .tempWrap ul li:eq(3) p b a:first");
	_EsdDynamicTransformationScript.esdRotationATag4 = $(".w600 .tempWrap ul li:eq(4) p b a:first");

	//原点
	_EsdDynamicTransformationScript.esdRotationCircleNumPoint1 = $(".w600 .index_img .index_img_hd ul li:eq(0)");
	_EsdDynamicTransformationScript.esdRotationCircleNumPoint2 = $(".w600 .index_img .index_img_hd ul li:eq(1)");
	_EsdDynamicTransformationScript.esdRotationCircleNumPoint3 = $(".w600 .index_img .index_img_hd ul li:eq(2)");
	_EsdDynamicTransformationScript.esdRotationCircleNumPoint4 = $(".w600 .index_img .index_img_hd ul li:eq(3)");

	//轮播后的标签
	_EsdDynamicTransformationScript.esdRotationAfterATag = $(".w600 .list_ty:eq(0) li a:first");

	//轮播前的焦点
	_EsdDynamicTransformationScript.esdRotationPreATag.focus(function (e) {
		$(this).bind("keydown.keydown_jgdj_0", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdRotationPreATag.mouseout();
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdRotationCircleNumPoint1.click();
				_EsdDynamicTransformationScript.esdRotationATag1.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdRotationPreATag.blur(function () {
		$(this).unbind("keydown.keydown_jgdj_0");
	});

	//第一块
	_EsdDynamicTransformationScript.esdRotationATag1.focus(function (e) {
		$(this).bind("keydown.keydown_jgdj_1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdRotationPreATag.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdRotationCircleNumPoint2.click();
				_EsdDynamicTransformationScript.esdRotationATag2.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdRotationATag1.blur(function () {
		$(this).unbind("keydown.keydown_jgdj_1");
	});

	//第二块
	_EsdDynamicTransformationScript.esdRotationATag2.focus(function (e) {
		$(this).bind("keydown.keydown_jgdj_2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdRotationCircleNumPoint1.click();
				_EsdDynamicTransformationScript.esdRotationATag1.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdRotationCircleNumPoint3.click();
				_EsdDynamicTransformationScript.esdRotationATag3.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdRotationATag2.blur(function () {
		$(this).unbind("keydown.keydown_jgdj_2");
	});
	
	//第三块
	_EsdDynamicTransformationScript.esdRotationATag3.focus(function (e) {
		$(this).bind("keydown.keydown_jgdj_3", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdRotationCircleNumPoint2.click();
				_EsdDynamicTransformationScript.esdRotationATag2.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdRotationCircleNumPoint4.click();
				_EsdDynamicTransformationScript.esdRotationATag4.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdRotationATag3.blur(function () {
		$(this).unbind("keydown.keydown_jgdj_3");
	});
	
	//第四块
	_EsdDynamicTransformationScript.esdRotationATag4.focus(function (e) {
		$(this).bind("keydown.keydown_jgdj_4", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdRotationCircleNumPoint3.click();
				_EsdDynamicTransformationScript.esdRotationATag3.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdRotationAfterATag.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdRotationATag4.blur(function () {
		$(this).unbind("keydown.keydown_jgdj_4");
	});
	
/*	//第五块
	_EsdDynamicTransformationScript.esdRotationATag5.focus(function (e) {
		
		_EsdDynamicTransformationScript.esdRotationCircleNumPoint5.click();
		$(this).bind("keydown.keydown_jgdj_5", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdRotationCircleNumPoint4.click();
				_EsdDynamicTransformationScript.esdRotationATag4.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdRotationAfterATag.focus();
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esdRotationATag5.blur(function () {
		$(this).unbind("keydown.keydown_jgdj_5");
	});	*/
	
	//轮播后的焦点
	_EsdDynamicTransformationScript.esdRotationAfterATag.focus(function (e) {
		$(this).bind("keydown.keydown_jgdj_6", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdRotationCircleNumPoint4.click();
				_EsdDynamicTransformationScript.esdRotationATag4.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdRotationAfterATag.blur(function () {
		$(this).unbind("keydown.keydown_jgdj_6");
	});
	// 0. 幻灯片 ------- end
}
// ***************	二级页面之 机关党建 页面 end	***************	//
